package com.itheima.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itheima.dao.FixAreaRepostiory;
import com.itheima.domain.FixedArea;
import com.itheima.service.FixAreaService;
@Service
@Transactional
public class FixAreaServiceImpl implements FixAreaService{

	@Autowired
	private FixAreaRepostiory fixAreaRepostiory;
	@Override
	public void save(FixedArea model) {
		// TODO Auto-generated method stub
		fixAreaRepostiory.save(model);
	}
	@Override
	public Page<FixedArea> findByPage(Specification<FixedArea> specification,
			Pageable pageable) {
		// TODO Auto-generated method stub
		return fixAreaRepostiory.findAll(specification, pageable);
	}

}
